<!DOCTYPE html>
<html>
    <head>
        <title><g:layoutTitle default="Grails" /></title>
        <link rel="stylesheet" href="${resource(dir:'css',file:'main.css')}" />
        <link rel="shortcut icon" href="${resource(dir:'images',file:'favicon.ico')}" type="image/x-icon" />
        <g:layoutHead />
        <g:javascript library="application" />
        <g:javascript library="jquery" plugin="jquery"/>
    </head>
    <body>
        <div id="spinner" class="spinner" style="display:none;">
            <img src="${resource(dir:'images',file:'spinner.gif')}" alt="${message(code:'spinner.alt',default:'Loading...')}" />
        </div>
		
		<div id="menu" align=RIGHT>
		  <nobr>
			<g:if test="${session.user}">
			  <b>${session.user?.email}&nbsp;</b> |
				<g:link controller="user" action="logout">Logout</g:link>
			</g:if>
			<g:else>
			  <g:link controller="user" action="login">Login</g:link>
			</g:else>
		  </nobr>
		</div>

        <div id="grailsLogo"><a class="home" href="${createLink(uri: '/gasto')}"><img src="${resource(dir:'images',file:'ahorros.jpg')}" alt="Grails" border="0" width/></a></div>
        <g:layoutBody />
    </body>
</html>